package com.eidetic.storage;

import java.util.ArrayList;
import java.util.Collection;

import com.eidetic.note.INote;
import com.eidetic.note.INoteStore;

public class NonPersistentNoteStore implements INoteStore
{
	public ArrayList<INote> notes;
	
	public NonPersistentNoteStore ()
	{
		notes = new ArrayList<INote>();
	}
	
	@Override
	public Collection<INote> getNotes()
	{
		return notes;
	}

	@Override
	public void addNote(INote note)
	{
		notes.add(note);
	}

	@Override
	public void removeNote(INote note)
	{
		notes.remove(note);
	}
	
}
